package com.ruoyi.citylife.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信用户业务对象 c_user
 *
 * @author ruoyi
 * @date 2022-10-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("微信用户业务对象")
public class CUserBo extends BaseEntity {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private String id;

    /**
     * openid
     */
    @ApiModelProperty(value = "openid", required = true)
    @NotBlank(message = "openid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openid;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickname;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private Boolean sex;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    private String city;

    /**
     * 签名
     */
    @ApiModelProperty(value = "签名")
    private String sign;

    /**
     * 是否小黑屋
     */
    @ApiModelProperty(value = "是否小黑屋")
    private Boolean disabled;

    /**
     * 最近一次登录时间
     */
    @ApiModelProperty(value = "最近一次登录时间")
    private Date lastLoginTime;

    /**
     * 秘籍数量
     */
    @ApiModelProperty(value = "秘籍数量")
    private Integer cheats;

    /**
     * 逻辑删除
     */
    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


    /**
     * 分页大小
     */
    @ApiModelProperty("分页大小")
    private Integer pageSize;

    /**
     * 当前页数
     */
    @ApiModelProperty("当前页数")
    private Integer pageNum;

    /**
     * 排序列
     */
    @ApiModelProperty("排序列")
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    @ApiModelProperty(value = "排序的方向", example = "asc,desc")
    private String isAsc;

}
